package code.c02;

/**
 * @author thinkpad - 83start
 * @version v1.0
 * @create 2022/9/8 10:40
 * @package PACKAGE_NAME
 * @description 文件说明
 */

public class Fibonacci {
    static int fibo(int n){
        if (n ==0 || n == 1){
            return 1;
        }else {
            return (fibo(n-1) + fibo(n-2));
        }
    }

    public static void main(String[] args) {
        System.out.println(fibo(8));
    }
}
